export function getCoordinate(e){
  let ray = window.viewer.camera.getPickRay(e.position)
  let cartesian = window.viewer.scene.globe.pick(ray, window.viewer.scene)
  let cartographic = Cesium.Cartographic.fromCartesian(cartesian)
  let longitude = Cesium.Math.toDegrees(cartographic.longitude)
  let latitude = Cesium.Math.toDegrees(cartographic.latitude)
  let altitude = cartographic.height
  return {
    longitude,
    latitude,
    altitude,
  }
}
